save command prompt output to file